package com.atguigu.eduorder.client;

import com.aiguigu.common_utils.ordervo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author zzc
 * @Date 2022/10/14 10:46
 * @Version 1.0
 */
@Component
@FeignClient("service-edu")
public interface EduClient {
    //根据课程id获取课程信息(该方法供远程调用使用)
    @PostMapping("/serviceedu/coursefront/getCourseInfoOrder/{id}")
    public CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);
}
